package cn.edu.dlmu.cogo.framework.config;

/**
 * @author yixi
 */
public class LogConfig extends JavaConfig{

    private final String debugPath;

    private final String errorPath;

    public LogConfig() {
        this.debugPath = "\\cogo-debug-log\\";
        this.errorPath = "\\cogo-error-log\\";
    }

    public LogConfig(String debugPath,String errorPath) {
        this.debugPath = (debugPath.endsWith("/") || debugPath.endsWith("\\")) ? debugPath : debugPath + "\\";
        this.errorPath = (errorPath.endsWith("/") || errorPath.endsWith("\\")) ? errorPath : errorPath + "\\";
    }

    public String getDebugPath() {
        return this.debugPath;
    }

    public String getErrorPath(){
        return this.errorPath;
    }
}
